package wei.xinya.spring.proxy;

import wei.xinya.spring.aop.MyAspect;
import wei.xinya.spring.service.MyService;
import wei.xinya.spring.service.impl.MyServiceImpl;

public class JDKProxy implements MyService {

    private final MyAspect aspect = new MyAspect();
    private final MyServiceImpl myService = new MyServiceImpl();

    @Override
    public void doSome() {
//        aspect.beforeDo1();
        myService.doSome();
    }

    @Override
    public String doOther() {
        return myService.doOther();
    }
}
